package packagerole;

import java.util.Date;
import java.util.List;

public class Order {
	public Order(long id, Date createTime, List<Goods> goods, long totalPrice, User user) {
		super();
		this.id = id;
		this.createTime = createTime;
		this.goods = goods;
		this.totalPrice = totalPrice;
		this.user = user;
	}


	private long id;
	private Date createTime;
	private List<Goods> goods;
	private Status status;
	private long totalPrice;
	private User user;
	private Merchant merchant;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Order(long id, Date createTime, long totalPrice) {
		super();
		this.id = id;
		this.createTime = createTime;
		this.totalPrice = totalPrice;
	}

	public Merchant getMerchant() {
		return merchant;
	}

	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}

	public Order() {
		super();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreatTime(Date createTime) {
		this.createTime = createTime;
	}

	public List<Goods> getGoods() {
		return goods;
	}

	public void setGoods(List<Goods> goods) {
		this.goods = goods;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public long getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(long totalPrice) {
		this.totalPrice = totalPrice;
	}
}
